CC=cc
CFLAGS= -Wall -g -c
LDFLAGS= -Wall -g

all:htserver htclient

htserver:server.o htlog.o
	cc $(LDFLAGS) -o $@ $<

htclient:client.o htlog.o
	cc $(LDFLAGS) -o $@ $^

client.o:client.c ht.h htlog.h
	cc $(CFLAGS) -o $@ $<

htlog.o:htlog.c ht.h htlog.h
	cc $(CFLAGS) -o $@ $<

clean:
	@rm -rf htclient
	@rm -rf htserver
	@rm -rf *.o
